锘縱ar allTextNodes = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT), tmptxt, tmpnode, cakeRE = /鍞竴|棰嗗厛|绗竴|涓€娴亅棣栦釜|鍗撹秺|缁濆|棣栭€墊鐙|鐙湁|鏈€|鏋亅濉ˉ鍥藉绌虹櫧|閲戠墝|棣栧彂|鐙竴鏃犱簩|缁濇棤浠呮湁|鐜嬬墝|棰嗚|鑷冲皧|鏃犳晫|瀹岀編|棰嗗ご缇妡棰嗗ご|鍏ㄦ柟浣峾鏋侀檺|甯﹀ご浜簗寮曢|棰嗗鑰厊棣栧厛|缁濅匠|绉掓潃|鐜囧厛|浼樿川|浼樼|椤剁骇|鏇夸唬|鐪熸/g replaceValue = ""; while (allTextNodes.nextNode()) { tmpnode = allTextNodes.currentNode; tmptxt = tmpnode.nodeValue; tmpnode.nodeValue = tmptxt.replace(cakeRE, replaceValue); }